﻿<h1>SignalR </h1>

<p>This is a simple example of an SignalR.</p>

<input [(ngModel)]="message" type="text"/>
<button (click)="sendMessage()">Send</button>
<button (click)="sendMessageObject()">SendObject</button>
<button *ngIf="isConnected" (click)="exit()">Exit</button>
<button *ngIf="!isConnected" (click)="enter()">Enter</button>
<ul>
    <li *ngFor="let item of messages;">
        <label>{{item.id}}</label>
        <label>{{item.message}}</label>
    </li>
</ul>
